package com.itlaobing.core;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

public class JdbcUtilsTest {
    public static void main(String[] args) throws SQLException {

        JdbcUtils jdbcUtils = JdbcUtils.getInstace(DatabaseType.ORACLE);

        // 加载 驱动
        jdbcUtils.load();
        // 建立链接
        Connection connection = jdbcUtils.connection();
        // 创建 实例
        Statement statement = jdbcUtils.statement(connection);
        // 发送 SQL
        int count = statement.executeUpdate("delete from t_topicc where id = 6 ");
        // 释放
        jdbcUtils.release(statement,connection);
    }
}
